-- GENERATED SPELL FOR [Nightbane Shadow Weaver] --


function spell0_533(pUnit, Event) --@Shadow Bolt,n/a--
pUnit:FullCastSpellOnTarget(9613,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_533', 3000, 1)
end

function spell1_533(pUnit, Event) --@Shadow Word: Pain,n/a--
pUnit:FullCastSpellOnTarget(992,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_533', 18000, 1)
end

function Sorts_533(pUnit, Event)
local choix_sorts_533 = math.random(0, 1)
if choix_sorts_533 == 0 then
pUnit:RegisterEvent('spell0_533', 1, 1)
end
if choix_sorts_533 == 1 then
pUnit:RegisterEvent('spell1_533', 1, 1)
end
end

function mob533_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_533', math.random(1500, 3000), 1)
end

function mob533_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob533_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob533_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(533, 1, 'mob533_Action')
RegisterUnitEvent(533, 2, 'mob533_Leave')
RegisterUnitEvent(533, 3, 'mob533_Kill')
RegisterUnitEvent(533, 4, 'mob533_Die')
